package com.zzyy.study.entities;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @auther zzyy
 * @create 2024-07-14 15:21
 */
@Data
public class CreateOrderRequest {

    @NotBlank(message = "商品不能为空")
    private String goods;

    @NotNull(message = "订单金额")
    private BigDecimal price;

    /**
     * 投递的消息延迟时间
     */
    private long delaySeconds;
}
